package com.weipai.springboot.module.service;

import com.weipai.springboot.model.ProductCategory;
import com.weipai.springboot.model.api.Response;

import java.util.List;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/02 14:28
 *
 * 商品类别
 *
 */
public interface ProductCategoryService {

    //保存分类
    Response save(ProductCategory productCategory);

    //修改分类
    Response update(ProductCategory productCategory);

    //查询商品类别详情
    Response getProductCategoryById(String id);

    //分页查询数量
    List<ProductCategory> selectAllByRankDel(int del, String rank, String sort, String way, String id);

    //更改商品类别的状态---禁用还是启用
    Response changeStatus(String id, Integer status);

    //批量删除
    Response batchDeleteById(String[] id);

    //查询三级分类
    Response getAllProductCategory();


    //查询三级分类优化
    Response getAllProductCategoryV2();

    //根据父类id查询子类列表,当pid为空时查询顶级分类
    Response getChildCategory(String pid);

    Response getSearchPropertyByCategory(String id);

    //根据顶级查询第三级分类
    Response getThirdCategoryByTopId(String id);
}
